﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fei.OopTest.Oop_package
{
    public class Person
    {
        private string _name;
        private int _age;
        public string Name
        {
            get { return this._name; }
            set {
                Console.WriteLine(value);
                this._name = value; 
            }
        }
        public int Age { get; set; }

        public void sleep()
        {
            Console.WriteLine($"{this.Name} is sleeping!!!");
        }

    }
}
